package com.deimos.tests;

import static org.junit.Assert.assertTrue;

import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.impl.llom.util.AXIOMUtil;
import org.junit.BeforeClass;
import org.junit.Test;
import org.vast.ows.sps.SPSUtils;

import com.deimos.HMA;
import com.deimos.dataBase.TaskController;

public class GetCapabilities {
    private static HMA hma = new HMA();
    SPSUtils utils = new SPSUtils();
    static String taskId = null;

    @BeforeClass
    public static void init() {
	TaskController taskController = new TaskController();
	taskController.createTables(false);
    }
    
    @Test
    public void describeSensor() throws Exception{
	OMElement request, response;
	request = AXIOMUtil.stringToOM(AllTests.readTest(AllTests.test_dir + "GetCapabilities_SOAP_Request.xml"));
	response = hma.GetCapabilities(request, "localhost");
	assertTrue(response.toString().contains("Input Specification"));
    }
}
